package com.woniuxy.list.mapper;

import com.hc.entity.RankList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ListMapper {
    //添加榜单
    int addList(RankList rankList);
    //修改榜单的分数
    int updateScoreByListId(@Param("id") Integer id, @Param("score") Integer score);
    //获取所有榜单
    List<RankList> getAllList();
    //根据分类id获取榜单
    List<RankList> getListByClassId(Integer cid);
}
